<?php
 
my_component_load('testing' , false);
my_component_load('paging' , false);
my_component_load('alamat' , false);
my_component_load('karyawan_installer');
$task = isset($_GET['task']) ? $_GET['task'] : ""; 
$id = isset( $_GET['id'] ) ? $_GET['id']:  0;
$modulname_karyawan = "Konfigurasi data _BN_ Data Pre Proses Karyawan ";
if($_SERVER['REQUEST_METHOD'] == "POST" ):
	switch($task){
		case "create": 
			$validate = form_submit_validate();
			if($validate){
				$pagename = (($id > 0 ) ? "Edit" :"Tambah" )." data karyawan";
				$content = message_multi_error($validate );
				$content .= form_create($id);
			}else{
				$kid = form_submit($id); 
				my_direct('index.php?com=karyawan_installer');
			}
		break;		 
	}

else: 	
	if($task =='create'){
		$pagename = (($id > 0 ) ? "Edit" :"Tambah" )." data karyawan";
		$content = form_create($id );
	}else{
		$pagename = $modulname_karyawan;
		load_facebox_script();
		$content = report_karyawan();
	}
endif; 
generate_my_web($content, $pagename  );
?>